import {
	request
} from './request.js';

// 登录
export const loginByCode = (data) => {
	return request({
		url: '/api/educationalTeacher/loginByCode',
		method: 'post',
		data: data
	})
}

// 获取短信
export const getCode = (data) => {
	return request({
		url: '/api/educationalTeacher/getCode',
		method: '',
		data: data
	})
}



//用户信息修改
export const updateInformation = (data) => {
	return request({
		url: "/api/educationalTeacher/updateInformation",
		method: 'post',
		data: data,
	})
}

// 用户信息回显
export const getInformation = (data) => {
	return request({
		url: '/api/educationalTeacher/getInformation',
		method: '',
		data: data
	})
}

// 师资入住
export const teacherSettle = (data) => {
	return request({
		url: '/api/educationalTeacher/teacherSettle',
		method: 'post',
		data: data
	})
}
// 派单中心列表
export const getJobList = (data) => {
	return request({
		url: '/api/educationalTeacher/getJobList',
		method: '',
		data: data
	})
}


// 老师确认接单
export const confirmOrder = (data) => {
	return request({
		url: '/api/educationalTeacher/confirmOrder',
		method: 'post',
		data: data
	})
}
// 文件上传
export const fileUpload = (data) => {
	return request({
		url: '/api/educationalTeacher/fileUpload',
		method: 'post',
		data: data
	})
}

// 学习中心
export const getStudyList = (data) => {
	return request({
		url: '/api/educationalTeacher/getStudyList',
		method: '',
		data: data
	})
}

// 行程安排
export const getTaskList = (data) => {
	return request({
		url: '/api/educationalTeacher/getTaskList',
		method: '',
		data: data
	})
}
// 获取子任务列表
export const getChildTaskList = (data) => {
	return request({
		url: '/api/educationalTeacher/getChildTaskList',
		method: '',
		data: data
	})
}

// 子任务打卡
export const makeSureJob = (data) => {
	return request({
		url: '/api/educationalTeacher/makeSureJob',
		method: 'post',
		data: data
	})
}


// 创建任务
export const saveJob = (data) => {
	return request({
		url: '/api/educationalTeacher/saveJob',
		method: 'post',
		data: data
	})
}


// 培训反馈
export const feedBackScore = (data) => {
	return request({
		url: '/api/educationalTeacher/feedBackScore',
		method: 'post',
		data: data
	})
}


// 学习中心-课程学习完成
export const studyComplete = (data) => {
	return request({
		url: '/api/educationalTeacher/studyComplete',
		method: '',
		data: data
	})
}

// 基础简介首页
export const baseIntroduction = (data) => {
	return request({
		url: '/api/educationalStudent/baseIntroduction',
		method: '',
		data: data
	})
}

// 首页-项目派单
export const projectDispatch = (data) => {
	return request({
		url: '/api/educationalTeacher/projectDispatch',
		method: '',
		data: data
	})
}

// 首页-项目派单
export const projectDispatchList = (data) => {
	return request({
		url: '/api/educationalTeacher/projectDispatchList',
		method: '',
		data: data
	})
}

// 提醒-获取所有子未完成子任务列表
export const getChildTaskNoEnd = (data) => {
	return request({
		url: '/api/educationalTeacher/getChildTaskNoEnd',
		method: '',
		data: data
	})
}

// 入驻状态
export const getSettleStatus = (data) => {
	return request({
		url: '/api/educationalTeacher/getSettleStatus',
		method: '',
		data: data
	})
}

// 确认收到提醒
export const remind = (data) => {
	return request({
		url: '/api/educationalTeacher/remind',
		method: '',
		data: data
	})
}


// 数据看板
export const dataBoard = (data) => {
	return request({
		url: '/api/educationalTeacher/dataBoard',
		method: '',
		data: data
	})
}

export const qingdaoProject = (data) => {
	return request({
		url: '/api/educationalStudent/qingdaoProject',
		method: '',
		data: data
	})
}
// 行程安排
export const itinerary = (data) => {
	return request({
		url: '/api/educationalStudent/itinerary',
		method: '',
		data: data
	})
}

// 培训评价
export const trainingAssess = (data) => {
	return request({
		url: '/api/educationalStudent/itinerary',
		method: 'post',
		data: data
	})
}
// 答题
export const getExamList = (data) => {
	return request({
		url: '/api/educationalTeacher/getExamList',
		method: '',
		data: data
	})
}
// 答题提交
export const saveExam = (data) => {
	return request({
		url: '/api/educationalTeacher/saveExam',
		method: 'post',
		data: data
	})
}


// 整体评价
export const trainingSatisfaction = (data) => {
	return request({
		url: '/api/educationalTeacher/trainingSatisfaction',
		method: '',
		data: data
	})
}

//开始学习
export const startStudy = (data) => {
	return request({
		url: '/api/educationalTeacher/startStudy',
		method: '',
		data: data
	})
}

//个人中心-老师评价得分，项目总量
export const getTeacherScore = (data) => {
	return request({
		url: '/api/educationalTeacher/getTeacherScore',
		method: '',
		data: data
	})
}

// 答题提交
export const studentRegistration = (data) => {
	return request({
		url: '/api/educationalStudent/studentRegistration',
		method: 'post',
		data: data
	})
}


// 学生注册获取验证码
export const StudentgetCode = (data) => {
	return request({
		url: '/api/educationalStudent/getCode',
		method: '',
		data: data
	})
}

// 学生培训反馈评分
export const trainingFeedback = (data) => {
	return request({
		url: '/api/educationalStudent/trainingFeedback',
		method: 'post',
		data: data
	})
}

// 扫码打卡
export const scanCode = (data) => {
	return request({
		url: '/api/educationalStudent/scanCode',
		method: 'post',
		data: data
	})
}

// 当前项目打卡详情
export const getSanCodePageData = (data) => {
	return request({
		url: '/api/educationalStudent/getSanCodePageData',
		method: '',
		data: data
	})
}

// 获取项目经理
export const getProjectManager = (data) => {
	return request({
		url: '/api/educationalTeacher/getProjectManager',
		method: '',
		data: data
	})
}
// 获取证书字段
export const getCertificateField = (data) => {
	return request({
		url: '/api/educationalStudent/getCertificateField',
		method: '',
		data: data
	})
}
// 获取证书列表
export const getCertList = (data) => {
	return request({
		url: '/api/educationalStudent/getCertList',
		method: '',
		data: data
	})
}

// 获取题目
export const getQuestionList = (data) => {
	return request({
		url: '/api/educationalStudent/getQuestionList',
		method: '',
		data: data
	})
}

// 保存答案
export const saveAnswer = (data) => {
	return request({
		url: '/api/educationalStudent/saveAnswer',
		method: 'post',
		data: data
	})
}


